﻿/*
 * 文件名：Performance.cs
 * 类名：XHCTMS.BLL.Performance
 * 创建人：杨学鹏
 * 创建时间：2013-5-20
 * 
 */
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace XHCTMS.BLL
{
    public class Performance
    {
        /// <summary>
        /// 对平时表现的操作
        /// </summary>
        /// <param name="Performance">平时表现信息</param>
        /// <returns>返回int类型 1/成功, 0/失败, -1/异常</returns>
        public int Add(MODEL.Performance Performance)
        {
            return new XHCTMS.DAL.Performance().Add(Performance);
        }

        /// <summary>
        /// 按条件查询用户信息并分页
        /// </summary>
        /// <param name="PageIndex">第N页</param>
        /// <param name="PageSize">每页多少条</param>
        /// <param name="QueryString">查询条件</param>
        /// <returns>返回DataTable类型  null/异常</returns>
        public DataTable View(int PageIndex = 1, int PageSize = 50, string QueryString = "")
        {
            return new XHCTMS.DAL.Performance().View(PageIndex, PageSize, QueryString);
        }


        /// <summary>
        /// 取得跟条件相关信息的总条数
        /// </summary>
        /// <param name="QueryString">查询条件</param>
        /// <returns>返回string null/异常</returns>
        public string GetCount(string QueryString)
        {
            return new DAL.Performance().GetCount(QueryString);
        }
    }
}
